﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="EvaluationSystem._Default" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

</head>
<body>
 
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
         <ext:Window 
            ID="LoginWindow" 
            runat="server" 
            Closable="false"
            Resizable="false"
            Height="150" 
            Icon="Lock" 
            Title="登录"
            Draggable="false"
            Width="350"
            Modal="false"
            BodyPadding="5"
             Padding="5"
            Layout="AnchorLayout" >
            <Items >
                <ext:TextField 
                    ID="txtUsername" 
                    runat="server"                     
                    FieldLabel="用户名" 
                    AllowBlank="false"
                    BlankText="请输入用户名."
                    Text=""
                    AnchorHorizontal="100%"
                    StyleSpec="padding-left:5px; padding-top:5px;"
                    />
                <ext:TextField StyleSpec="padding-left:5px; padding-top:5px;"
                    ID="txtPassword" 
                    runat="server" 
                    InputType="Password" 
                    FieldLabel="密码" 
                    AllowBlank="false" 
                    BlankText="请输入密码."
                    Text=""
                    AnchorHorizontal="100%"
                    />
                    <ext:Label ID="lbMessage" Text = "" runat="server" />
            </Items>
            <Buttons>
                <ext:Button ID="btnLogin" runat="server" Text="Login" Icon="Accept">
                    <Listeners>
                        <Click Handler="
                            if (!#{txtUsername}.validate() || !#{txtPassword}.validate()) {
                                Ext.Msg.alert('Error','请填写用户名跟密码.');
                                // return false to prevent the btnLogin_Click Ajax Click event from firing.
                                return false; 
                            }" />
                    </Listeners>
                    <DirectEvents>
                        <Click OnEvent="btnLogin_Click">
                            <EventMask ShowMask="true" Msg="Verifying..." MinDelay="500" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="btnCancel" runat="server" Text="Cancel" Icon="Decline">
                    
                </ext:Button>
            </Buttons>
        </ext:Window>
        </form>

</body>
</html>
